namespace Interface;

/// <summary>
/// 密码服务接口
/// </summary>
public interface IPasswordService
{
    /// <summary>
    /// 加密密码
    /// </summary>
    /// <param name="password">原始密码</param>
    /// <returns>加密后的密码</returns>
    string HashPassword(string password);

    /// <summary>
    /// 验证密码
    /// </summary>
    /// <param name="password">原始密码</param>
    /// <param name="hashedPassword">加密后的密码</param>
    /// <returns>是否匹配</returns>
    bool VerifyPassword(string password, string hashedPassword);
}